package cn.mogugo.util.tools;

import java.util.ArrayList;
import java.util.List;

public class SameString {
	public static void main(String[] args){
		String a = "110,114,119,120,122,11185,12117,12119,12121,12300,12301,12305,12306,12309,12310,12312,12313,12315,12316,12318,12319,12320,12321,12322,12330,12331,12333,12335,12336,12338,12340,12345,12348,12349,12350,12351,12355,12356,12358,12360,12365,12366,12368,12369,12370,12371,12377,12380,12388,12390,12395,12398,95002,95007,95013,95033,95040,95053,95056,95057,95065,95067,95081,95085,95086,95089,95090,95098,95107,95116,95120,95122,95131,95139,95158,95166,95167,95171,95178,95189,95191,95198,95217,95502,95503,95505,95506,95507,95508,95509,95513,95517,95519,95520,95521,95523,95525,95526,95528,95529,95531,95532,95533,95535,95536,95537,95538,95539,95540,95541,95543,95548,95548,95550,95551,95552,95553,95555,95558,95561,95563,95565,95566,95568,95569,95570,95571,95572,95573,95575,95577,95578,95579,95580,95581,95582,95584,95585,95586,95587,95588,95589,95590,95595,95596,95597,95599,95808,952111,952116,952118,952168";
		List same = new ArrayList();
		String[] b = a.split(",");
		for(int i = 0 ; i < b.length ; i ++ ){
			String base = b[i];
			for(int j = 0 ; j < b.length ; j ++ ){
				if(i != j){
					String to = b[j];
					if(base.equals(to)){
						boolean inList = false;
						for(int k = 0 ; k < same.size() ; k ++ ){
							String inListString = (String)same.get(k);
							if(base.equals(inListString)){
								inList = true;
								break;
							}
						}
						if(!inList){
							same.add(base);
							continue;
						}
					}
				}
			}
		}
		
		for(int i = 0 ; i < same.size() ; i ++ ){
			System.out.println((String)same.get(i));
		}
	}
}
